<style>
	#hor-minimalist-b
	{
		   
		   font-size: 12px;
		   background: #fff;
		   margin-top: 45px;
		   margin-left: 15px;
		   margin-right: 15px;
		   margin-bottom: 15px;
		   width: 180px;
		   border-collapse: collapse;
		   text-align: center;
		    border-left: 1px solid #B9C7D0;
			border-top: 1px solid #B9C7D0;
	}
	#hor-minimalist-b th
	{
		   font-size: 12px;
		   font-weight: normal;
		   color: #000;
		   padding: 10px 6px;
		   background-color:#B9C7D0;
		   border-bottom: 2px solid #ccc;
		   border-right: 1px solid #ccc;
		   border-top: 1px solid #ccc;
		   border-left: 1px solid #ccc;
		   font-weight:bold;
	}
	#hor-minimalist-b td
	{
		   border-bottom: 1px solid #ccc;
		   border-right: 1px solid #ccc;
		   border-left: 1px solid #ccc;
		   color: #000;
		   padding: 6px 8px;
	}
	#hor-minimalist-b tbody tr:hover td
	{
		   color: #009;
	}
</style>
	<div style="margin 50px 50px;">	
		
		<h2> Attendance Report </h2>
		
		
		<div class="tableinnerlist">
			<table width="100%" border="0" cellspacing="0" cellpadding="0" >
				<tr>
					<td><div align="center"><img src="images/logo.png"></div></td>
				</tr>
			</table>
			<div align="center"><strong>Class-wise Attendance Report as on - <font color="red"><?php if(isset($_REQUEST['from_date'])){ echo $_REQUEST['from_date'];}?></font> to <font color="red"><?php if(isset($_REQUEST['to_date'])){ echo $_REQUEST['to_date'];}?></font><br/> Report of Students who are absent for more than 2 days</strong> </div>
			<table id="hor-minimalist-b" summary="Employee Pay Sheet" style="width:150%;">
				
				<tr>
					<th>Sr No</th>
					<th>Class</th>
					<th>Name of <br> the Student</th>
					<th>Roll No. of <br> the Student</th>
					<th>Absent from</th>
					<th>Total Number of Days <br> Absent in the Academic Year</th>
					<th>Contact Number</th>
				</tr>
				<?php if(isset($_REQUEST['class_id']))
				{ 
					$get_student=$model->Students_absent_morethan_twodays($_REQUEST['no_of_days'],$_REQUEST['class_id'],$_REQUEST['from_date'],$_REQUEST['to_date']);
				
					$serial=1;
					foreach($get_student as $result)
					{
				?>
						<tr>
							<td><?php echo $serial++; ?></td>
							<td>
								<?php $classtbl = Classtbl::model()->findByAttributes(array('class_id'=>$_REQUEST['class_id'])); 
									echo $classtbl->class_name;
								?>
							</td>
							<td><?php echo $result['first_name'],' ', $result['last_name'] ; ?></td>
							<td><?php echo $result['registration_no']; ?></td>
							<td><?php echo $_REQUEST['from_date'],' to ',$_REQUEST['to_date']; ?></td>
							<td><?php $no_of_days_absent = (int)$result['totalabsent']; 
								echo $no_of_days_absent;
								?>
							</td>
							<td><?php echo $result['cell_number']; ?></td>
						</tr>
				<?php }
				}
				
				?>
			</table>
		</div>
		
	</div>
